#include"Socket.h"

class Server : public Socket
{
public:
    //服务器句柄
    socketfd ser_skf;

private:
    void bindSocketAddr(struct sockaddr *addr_sockaddr, int addrlen);
    void createListen(int num);
protected:


public:
    Server(int mode, int port, char* ip_addr);
    ~Server();
    void startServer();
    socketfd acceptConnection(struct sockaddr *addr = NULL, socklen_t len_addr = 0);
};